<%--
  Created by IntelliJ IDEA.
  User: huanghuichi
  Date: 2017/11/9
  Time: 11:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="/WEB-INF/common/top.jsp"%>
<html>
<%
    String name = (String)session.getAttribute("managername");
    String permission = (String)session.getAttribute("permission");
%>
<head>
    <title>用户登录信息</title>
</head>
<script src="${path}/tools/jquery-1.8.2.min.js"></script>
<script>
    var name = "<%=name %>";
    var permission = "${permission}";
    $(document).ready(function () {
        alert(name+'的权限级别:'+permission);
        console.log(name);
        $("#toIndex").click(function () {
            window.location.href =  "${path}/";
        });
    })
</script>
<body>
<input type="button" id="toIndex" value="点击返回首页"><br>
<div>
    帐号:<%=name %>,权限:<%=permission %>
</div>
</body>
</html>
